export enum VisitType {
  PHONE_CALL = 'PHONE_CALL',
  ON_SITE = 'ON_SITE',
  VIDEO_CALL = 'VIDEO_CALL',
  ONLINE_MEETING = 'ONLINE_MEETING',
  EXHIBITION = 'EXHIBITION',
  OTHER = 'OTHER',
}

export const VisitTypeMap = {
  [VisitType.PHONE_CALL]: { label: '电话拜访', description: '通过电话进行的拜访' },
  [VisitType.ON_SITE]: { label: '实地拜访', description: '到客户现场进行的拜访' },
  [VisitType.VIDEO_CALL]: { label: '视频拜访', description: '通过视频会议进行的拜访' },
  [VisitType.ONLINE_MEETING]: { label: '在线会议', description: '通过在线会议系统进行的拜访' },
  [VisitType.EXHIBITION]: { label: '展会拜访', description: '在展会现场进行的拜访' },
  [VisitType.OTHER]: { label: '其他拜访', description: '其他类型的拜访' },
}

export interface Visit {
  id?: number
  customerId: number
  customerName?: string
  title: string
  visitTime: number
  visitType: string
  visitPurpose: string
  visitAddress: string
  content: string
  visitResult: string
  nextPlan: string
  collaboratorIds?: number[]
  createdBy?: string
  createdAt?: string
  updatedAt?: string
  status?: string
}
